package com.portal.model.system;

import java.util.Date;
import com.util.portal.CodeNameEnum;

public class Role {
	/**
	 * 角色编码
	 */
	private String roleCode;
	/**
	 * 角色名称
	 */
	private String roleName;
	/**
	 * 角色类型
	 */
	private String roleType;
	/**
	 * 上级角色
	 */
	private String parentCode;
	/**
	 * 是否固化
	 */
	private String disable;
	/**
	 * 是否有效
	 */
	private String isValid;
	/**
	 * 更新时间
	 */
	private Date upDateTime;
	/**
	 * 更新人
	 */
	private String upUserCode;
	/**
	 * 所属机构编码
	 */
	private String deptCode;
	/**
	 * 所属机构名称
	 */
	private String deptName;
	/**
	 * 备注说明
	 */
	private String memo;
	public String getRoleCode() {
		return roleCode;
	}
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getRoleType() {
		return roleType;
	}
	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}
	public String getParentCode() {
		return parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
	public String getDisable() {
		return disable;
	}
	public void setDisable(String disable) {
		this.disable = disable;
	}
	public String getIsValid() {
		return isValid;
	}
	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}
	public Date getUpDateTime() {
		return upDateTime;
	}
	public void setUpDateTime(Date upDateTime) {
		this.upDateTime = upDateTime;
	}
	public String getUpUserCode() {
		return upUserCode;
	}
	public void setUpUserCode(String upUserCode) {
		this.upUserCode = upUserCode;
	}
	public String getDeptCode() {
		return deptCode;
	}
	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	/**
	 * 角色类型
	 */
	public static class ROLETYPE extends CodeNameEnum<String> {
		public static ROLETYPE BUSINESS = new ROLETYPE("1", "业务角色");
		public static ROLETYPE MANAGE = new ROLETYPE("0", "管理角色");

		public static ROLETYPE[] values() {
			return new ROLETYPE[] { BUSINESS,MANAGE };
		}

		private ROLETYPE(String code, String name) {
			super(code, name);
		}
	}
	
	/**
	 * 是否固化
	 */
	public static class DISABLE extends CodeNameEnum<String> {
		public static DISABLE YES = new DISABLE("1", "固化");
		public static DISABLE NO = new DISABLE("0", "不固化");

		public static DISABLE[] values() {
			return new DISABLE[] { YES,NO };
		}

		private DISABLE(String code, String name) {
			super(code, name);
		}
	}
}
